<script>
	import {isQianfan} from "@/until/QFH5.js"
    export default {
		
        onLaunch() {
        },
        onShow() {
            // console.log('App Show')
			//向下驱动任务刷新
			let taskStatus =  uni.getStorageSync('taskStatus') || null
			console.log('taskStatus',taskStatus,this.actid)
			if(taskStatus!=null){
				console.log('触发强刷')
				// this.updateStatus = true
				this.$store.commit('SETUPDATETASK',true)
				let _this = this
				setTimeout(()=>{
					_this.$store.commit('SETUPDATETASK',false)
					uni.setStorageSync('taskStatus',null)
				},800)
			}else{
				console.log('没有任务')

			}
        },
        onHide() {
            // console.log('App Hide')
        },
		methods:{

		},
		mounted() {
			// this.$store.dispatch('setSiteinfo')
			// if(isQianfan()){
				// this.$store.dispatch('checkWechat')
				// this.$store.dispatch('setDeviceid')
			// }
			// this.$store.dispatch('setDeviceid')
			//this.$store.dispatch('checkWechat')
		}
    }
</script>

<style>
    /*每个页面公共css */
	body{
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		min-height: 100vh;
	}
</style>
